package org.diysearch.dao.interfaces;

import java.sql.SQLException;
import java.util.List;

import org.diysearch.interfaces.Taggable;
import org.diysearch.models.MyTag;
import org.diysearch.models.ObjectTag;
import org.diysearch.models.Tag;

public interface TagDao {
	public int save(Tag tag, MyTag myTag, ObjectTag objectTag) throws SQLException;
	public List<Tag> findByItemAndOid (int item, int oid) throws SQLException;
	public List<Tag> findTagsByUser (int uid) throws SQLException;
	public int delete (int uid, String tag) throws SQLException;
	public List<Taggable> findItemsByOid (int oid, String tag) throws SQLException;
}
